package arch.dao.impl.usync;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

import org.springframework.jdbc.core.BatchPreparedStatementSetter;

import arch.domain.usync.SyncLog;
/**
 * 
 * @author <a mailto="wanglong635@126.com">Long</a>
 *
 */
public class SyncLogRemoveSetter implements BatchPreparedStatementSetter {
	private List<SyncLog> logs;
	
	public SyncLogRemoveSetter(List<SyncLog> logs){
		this.logs = logs;
	}
	
	public SyncLogRemoveSetter(){}
	
	public int getBatchSize() {
		return this.logs.size();
	}

	public void setValues(PreparedStatement ps, int i) throws SQLException {
		ps.setString(1, logs.get(i).getId());
	}

}
